<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            background-color: aquamarine;
            /* display: flex;
            flex-direction: column; */
            /* font-size: 0; */
        }

        .span1 {
            width: 10px;
            height: 10px;
            background-color: pink;
        }

        .span2 {
            width: 10px;
            height: 10px;
            background-color: red;
        }
    </style>
</head>

<body>

    <div>
        <a href="" class="span1">
            span1
        </a>
        <a href="" class="span2">
            span2
        </a>
    </div>
</body>

</html>